package com.beiding.workordersystem.orders.generalorder.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.beiding.workordersystem.common.dao.MPage;
import com.beiding.workordersystem.orders.generalorder.entity.GeneralOrder;
import com.beiding.workordersystem.orders.generalorder.model.OrderModel;
import com.beiding.workordersystem.orders.generalorder.query.OrderQuery;

import java.util.Date;

public interface GeneralOrderService {

    void save(GeneralOrder generalOrder);

    void delete(String[] ids);

    void submit(String[] ids);

    IPage<GeneralOrder> page(MPage page, OrderQuery query);

    IPage<GeneralOrder> pageAuditor(MPage page, OrderQuery query);

    void pass(String[] ids);

    void refuse(String id, String reason);

    void close(String id);

    void grab(String orderId);

    void removePrincipal(String orderId);

    IPage pageGrab(MPage mPage);

    GeneralOrder getDetails(String id);

    void chargeback(String[] ids);

    OrderModel statistics(Date start, Date to);
}
